package cn.liontalk.concurrent.shuati;


import java.util.Scanner;

/**
 * 小球高度
 */

public class Main7 {


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            int s = sc.nextInt();
            double sum = 0;
            double temp = s;
            for(int i=0;i<5;i++){
                sum  = sum + temp*2;
                temp = temp /2 ;
            }
            sum = sum - s;
            System.out.printf("%.6f\n",temp);
            System.out.printf("%.6f\n",sum);

        }
    }




}
